<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>卡斯基车务</title>
    <meta name="viewport"
          content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="../../../css/common.css"/>
    <link rel="stylesheet" href="../../../css/zuzhang/shouye/zuzhang_shouye.css"/>
    <script type="text/javascript" src="../../../lib/jquery-3.1.1.min.js"></script>
    <script type="text/javascript" src="../../../lib/underscore.js"></script>
    <script type="text/javascript" src="../../../lib/iscroll.js"></script>
    <script type="text/javascript" src="../../../lib/global.js"></script>
    <script type="text/javascript" src="../../../js/zuzhang/shouye/zuzhang_shouye.js"></script>
</head>
<body>
<div class="mainContainer" id="clerkWaiting">
    <div class="top_notice" id="notice">
        <script type="text/template">
            <div class="company_notice">
                <h2 class="colorfff font20">公司通告</h2>
                <ul class="details_list">
                    <%for(var i=0;i<data.length;i++){%>
                    <li>
                        <span class="font12 colorfe8"><%=data[i].createTime%></span>
                        <span class="font12 colora29"><%=data[i].content%></span>
                    </li>
                    <%}%>
                </ul>
            </div>
        </script>
    </div>
    <div class="search">
        <div class="search_input radius_small">
            <img src="../../../images/search.png"/>
            <input type="text" placeholder="搜索" id="searchPendingOrder">
        </div>
    </div>
    <div class="order_list" id="order_list">
        <div>
            <ul>
                <script type="text/template">
                    <%for(var i=0; i < data.length;i++){%>
                    <%var makeTime = new Date(data[i].makeTime.replace(/-/g,'/')).getTime(); %>
                    <%var mins = parseInt((new Date().getTime() - makeTime)/1000/60);%>
                    <%var p = ''%>
                    <%if(mins < 60){%>
                    <%p = mins + '分钟前发布'%>
                    <%}else if(mins > 60 && mins < 1440){%>
                    <%p = parseInt(mins/60) + '小时前发布'%>
                    <%}else{%>
                    <%p = parseInt(mins/1440) + '天前发布'%>
                    <%}%>
                    <li class="order_compete">
                        <img src="../../../images/car_pic.png">
                        <div class="step_name">
                            <span class="font14 color4e4 step"><%=data[i].taskName%></span>
                            <span class="font12 color17d pick">可接取</span>
                        </div>
                        <div class="car_information">
                            <span class="font12 color9a9 car1"><%=data[i].carPlateNum%></span>
                            <span class="font12 color9a9 car2"><%=data[i].carColor%></span>
                            <span class="font12 color9a9 car3"><%=data[i].carBrand%></span>
                            <span class="font12 color796 car4" data-time="<%=data[i].timeLength%>"><%=p%></span>
                        </div>
                        <div class="car_information_1">
                            <span class="font12 color9a9">发动机号：</span>
                            <span class="font12 color9a9"><%=data[i].carEngineNum%></span>
                            <span class="font12 color9a9 car6">车架号：</span>
                            <span class="font12 color9a9"><%=data[i].carChassisNum%></span>
                        </div>
                    </li>
                    <%}%>
                </script>
            </ul>
        </div>
    </div>
</div>
<div class="bottom_list font10">
    <a class="home colorff6" href="../shouye/zuzhang_shouye.html">首页</a>
    <a class="process colora29" href="../banli/zuzhang_banli_shouye.html">正在办理</a>
    <a class="mine colora29" href="../wode/zuzhang_wode.html">我的</a>
</div>
</body>
</html>
